﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<t_205_verk_hopur_12.Models.ChannelElectionViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Kosningar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Kosningar</h2>
    <% if (!Model.Elections.Any())
    { %>
        <h3>Engar kosningar í gangi</h3>
    <%}
    else
    { %>
        <% using (Html.BeginForm())
        {%>
            <% foreach (var item in Model.Elections)
            { %>
                <div class=display-label>
                     <%= item.Video.Title%>
                </div>
                <div class=clear></div>
                <div class=display-field>
                    <label for="Yes<%= item.ID %>">Já <input type="radio" name="<%= item.ID %>" id="Yes<%= item.ID %>" value="1" /></label>
                    <label for="No<%= item.ID %>">Nei <input type="radio" name="<%= item.ID %>" id="No<%= item.ID %>" value="-1" /></label>
                </div>
                <div class=clear></div>
            <% } %>
            <p>
            <input type="submit" value="Kjósa" />
            </p>
        <% } %>
    <%} %>
    <%= Html.ActionLink("Til baka", "Admin", new { id = Model.Channel.ID })%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LogoText" runat="server">
    <%= Html.ActionLink(Model.Channel.Name, "Index", new { id = Model.Channel.ID }) %>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MenuBar" runat="server">
    <% Html.RenderPartial("AdminChannelMenuBar", Model.Channel); %>
</asp:Content>
